import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    activeMode: '', // 首页展示的模块
    role:'', // 分销商
  },
  getters: {
  },
  mutations: {
    setActiveMode(state, data){
      state.activeMode = data;
    },
    setRole(state, data){
      state.role = data;
    }
  },
  actions: {
  },
  modules: {
  }
})
